package actions;

import java.awt.event.ActionEvent;

import client_gui.ChangePasswordDialog;
import client_gui.ClientWindow;

/**
 * Klasa reprezentuje ChangePassword akciju.
 * 
 * @author UrosKrkic & Radivoje Popovic
 */
public class ChangePasswordAction extends RLMAbstractAction {

	
	public ChangePasswordAction(ClientWindow owner) {
		setActionOwner(owner);
//		putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_F6, 0));
		putValue(SMALL_ICON, loadIcon("images/password.png"));
		putValue(NAME, "Change Password");
		putValue(SHORT_DESCRIPTION, "Promena lozinke");
	}
	
	
	public void actionPerformed(ActionEvent e) {
		ChangePasswordDialog changePasswordDialog = new ChangePasswordDialog(getActionOwner());
		changePasswordDialog.setVisible(true);
	}
	
}
